<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Tetris: Level Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Tetris
   
   </div>
   <div id="projectbrief">Um jogo do tipo tetris</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Level Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Level" -->
<p>Classe do tipo <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code>.  
 <a href="class_level.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="level_8h_source.html">level.h</a>&gt;</code></p>

<p><a href="class_level-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7a696c928ca5d5354db6e50e46d0f67d"></a><!-- doxytag: member="Level::Level" ref="a7a696c928ca5d5354db6e50e46d0f67d" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_level.html#a7a696c928ca5d5354db6e50e46d0f67d">Level</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Construtor padrão classe <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a249eac1e8f19ff44134efa5e986feaca"></a><!-- doxytag: member="Level::~Level" ref="a249eac1e8f19ff44134efa5e986feaca" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_level.html#a249eac1e8f19ff44134efa5e986feaca">~Level</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destrutor padrão classe <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_level.html#a4010ac54d2f76d8f45965a5265a9ab3e">getLevelValue</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Função membro pública da classe <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code> para obter o valor inteiro do level atual.  <a href="#a4010ac54d2f76d8f45965a5265a9ab3e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_level.html#aebb4c40536b3813207e42f1c09c703a5">getScoreNovaPeca</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Função membro pública da classe <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code> para obter o score do round correspondente ao level atual (<em>m_LevelValue</em>).  <a href="#aebb4c40536b3813207e42f1c09c703a5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_level.html#a3557af4a9a9a951da54fbc7968254baf">getScoreLinhaCompleta</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Função membro pública da classe <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code> para obter o score correspondente ao level atual (<em>m_LevelValue</em>) quando uma linha é completada.  <a href="#a3557af4a9a9a951da54fbc7968254baf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_level.html#a45f9b4eded889235ed2d9713f1599450">getScoreBonus</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Função membro pública da classe <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code> para obter o score do round correspondente ao level atual (<em>m_LevelValue</em>) quando o tabuleiro fica completamente vazio.  <a href="#a45f9b4eded889235ed2d9713f1599450"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_level.html#a18667c63f16a7b8b9e6812c2392e7383">getScoreToNextLevel</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Função membro pública da classe <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code> para obter o score necessário para passar de level.  <a href="#a18667c63f16a7b8b9e6812c2392e7383"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_level.html#a8be723752e54025f450b32a64c7a3997">getTimer</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Função membro pública da classe <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code> para obter o intervalo de tempo para o movimento de <em>Board::m_PecaAtual</em> dependendo do valor de <em>m_LevelValue</em>.  <a href="#a8be723752e54025f450b32a64c7a3997"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_level.html#ace8a2707e614b56191c42caf72edf842">setLevel</a> (int novoLevel)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Função membro pública da classe <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code> para modificar o valor de <em>m_LevelValue</em>.  <a href="#ace8a2707e614b56191c42caf72edf842"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Classe do tipo <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code>. </p>
<p>Esta classe gerencia os pontos do jogo e o avanço de níveis de dificuldade. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>Ghybson </dd>
<dd>
Luís </dd>
<dd>
Willian </dd></dl>
<dl class="version"><dt><b>Version:</b></dt><dd>0.1 </dd></dl>
<dl class="date"><dt><b>Date:</b></dt><dd>2011 </dd></dl>
<dl class="copyright"><dt><b>Copyright:</b></dt><dd>GNU Public License. </dd></dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000003">Todo:</a></b></dt><dd>A pontuação e o avanço de níveis é "injusto" para jogadores que arriscam mais para completar mais linhas ao mesmo tempo. </dd></dl>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a4010ac54d2f76d8f45965a5265a9ab3e"></a><!-- doxytag: member="Level::getLevelValue" ref="a4010ac54d2f76d8f45965a5265a9ab3e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Level::getLevelValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Função membro pública da classe <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code> para obter o valor inteiro do level atual. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Retorna o inteiro <em>m_LevelValue</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a45f9b4eded889235ed2d9713f1599450"></a><!-- doxytag: member="Level::getScoreBonus" ref="a45f9b4eded889235ed2d9713f1599450" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Level::getScoreBonus </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Função membro pública da classe <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code> para obter o score do round correspondente ao level atual (<em>m_LevelValue</em>) quando o tabuleiro fica completamente vazio. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Retorna o inteiro <em>m_LevelValue</em> * <em>m_LevelValue</em> * <em>m_LevelValue</em> * 1000. </dd></dl>

</div>
</div>
<a class="anchor" id="a3557af4a9a9a951da54fbc7968254baf"></a><!-- doxytag: member="Level::getScoreLinhaCompleta" ref="a3557af4a9a9a951da54fbc7968254baf" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Level::getScoreLinhaCompleta </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Função membro pública da classe <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code> para obter o score correspondente ao level atual (<em>m_LevelValue</em>) quando uma linha é completada. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Retorna o inteiro <em>m_LevelValue</em> * 50. </dd></dl>

</div>
</div>
<a class="anchor" id="aebb4c40536b3813207e42f1c09c703a5"></a><!-- doxytag: member="Level::getScoreNovaPeca" ref="aebb4c40536b3813207e42f1c09c703a5" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Level::getScoreNovaPeca </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Função membro pública da classe <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code> para obter o score do round correspondente ao level atual (<em>m_LevelValue</em>). </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Retorna o inteiro <em>m_LevelValue</em> * 10. </dd></dl>

</div>
</div>
<a class="anchor" id="a18667c63f16a7b8b9e6812c2392e7383"></a><!-- doxytag: member="Level::getScoreToNextLevel" ref="a18667c63f16a7b8b9e6812c2392e7383" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Level::getScoreToNextLevel </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Função membro pública da classe <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code> para obter o score necessário para passar de level. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Retorna o inteiro <em>m_LevelValue</em> * <em>m_LevelValue</em> * 150. </dd></dl>

</div>
</div>
<a class="anchor" id="a8be723752e54025f450b32a64c7a3997"></a><!-- doxytag: member="Level::getTimer" ref="a8be723752e54025f450b32a64c7a3997" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Level::getTimer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Função membro pública da classe <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code> para obter o intervalo de tempo para o movimento de <em>Board::m_PecaAtual</em> dependendo do valor de <em>m_LevelValue</em>. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Retorna um inteiro entre 100 e 1000 representando um intervalo de tempo em milisegundos. </dd></dl>

</div>
</div>
<a class="anchor" id="ace8a2707e614b56191c42caf72edf842"></a><!-- doxytag: member="Level::setLevel" ref="ace8a2707e614b56191c42caf72edf842" args="(int novoLevel)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Level::setLevel </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>novoLevel</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Função membro pública da classe <code><a class="el" href="class_level.html" title="Classe do tipo Level.">Level</a></code> para modificar o valor de <em>m_LevelValue</em>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">novoLevel</td><td>Inteiro que será colocado como valor para <em>m_LevelValue</em>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="level_8h_source.html">level.h</a></li>
<li>level.cpp</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Nov 29 2011 12:33:36 for Tetris by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
